package com.ling.greedy.snake.game.ui.pages.game.widget

import androidx.compose.foundation.layout.Box
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
import com.ling.greedy.snake.game.ui.theme.FONT_COLOR

@Composable
fun GameTitle(score : Int , modifier: Modifier = Modifier){
    Box(
        modifier = modifier,
        contentAlignment = Alignment.Center
    ){
        Text(
            "SCORE: $score",
            fontSize = 30.sp,
            fontWeight = FontWeight.Black,
            color = FONT_COLOR
        )
    }
}